package com.liang.design.domain.service.engine;

import com.liang.design.domain.service.logic.LogicFilter;
import com.liang.design.domain.service.logic.impl.UserAgeFilter;
import com.liang.design.domain.service.logic.impl.UserGenderFilter;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author lsm
 * @ClassName EngineConfig.java
 * @Description 决策节点配置
 * @createTime 2023年12月05日 16:03:00
 */
public class EngineConfig {

    static Map<String, LogicFilter> logicFilterMap;
    static {
        logicFilterMap = new ConcurrentHashMap<>();
        logicFilterMap.put("userAge", new UserAgeFilter());
        logicFilterMap.put("userGender", new UserGenderFilter());
    }
    public Map<String, LogicFilter> getLogicFilterMap() {
        return logicFilterMap;
    }
    public void setLogicFilterMap(Map<String, LogicFilter> logicFilterMap)
    {
        this.logicFilterMap = logicFilterMap;
    }
}
